add_qtc_library(qxribbon
  VERSION 0.8.0
  DEFINES QX_RIBBON_LIBRARY
  DEPENDS Qt5::Core Qt5::Gui Qt5::Widgets
  SOURCES
    framelesshelper.cpp framelesshelper.h
    res.qrc
    ribbonactionsmanager.cpp ribbonactionsmanager.h
    ribbonapplicationbutton.cpp ribbonapplicationbutton.h
    ribbonbar.cpp ribbonbar.h ribbonbar_p.h
    ribbonbutton.cpp ribbonbutton.h ribbonbutton_p.h
    ribbonbuttongroup.cpp ribbonbuttongroup.h
    ribboncolorbutton.cpp ribboncolorbutton.h ribboncolorbutton_p.h
    ribboncontainers.cpp ribboncontainers.h
    ribboncontrols.cpp ribboncontrols.h
    ribboncustomizedata.cpp ribboncustomizedata.h
    ribboncustomizedialog.cpp ribboncustomizedialog.h
    ribboncustomizewidget.cpp ribboncustomizewidget.h
    ribbonfactory.cpp ribbonfactory.h
    ribbongallery.cpp ribbongallery.h
    ribbongallerygroup.cpp ribbongallerygroup.h ribbongallerygroup_p.h
    ribbongroup.cpp ribbongroup.h ribbongroup_p.h
    ribbongrouplayout.cpp ribbongrouplayout.h
    ribbonmanager.cpp ribbonmanager.h
    ribbonpage.cpp ribbonpage.h ribbonpage_p.h
    ribbonpagecontext.cpp ribbonpagecontext.h
    ribbonquickaccessbar.cpp ribbonquickaccessbar.h ribbonquickaccessbar_p.h
    ribbonstyleoption.cpp ribbonstyleoption.h
    ribbontabbar.cpp ribbontabbar.h
    ribbontheme.cpp ribbontheme.h
    ribbonutils.cpp ribbonutils.h
    ribbonwindow.cpp ribbonwindow.h
    windowbuttongroup.cpp windowbuttongroup.h windowbuttongroup_p.h
)

if (WIN32)
    if (Qt5_VERSION VERSION_LESS 6.0.0)
        extend_qtc_library(qxribbon DEFINES FRAMELESS_USE_NATIVE)
    endif()
endif()
